package com.xja.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.xja.bean.Htype;
import com.xja.mapper.HtypeMapper;
import com.xja.service.HtypeService;

import java.util.List;

/**
@author 李岩
@date 2021/12/23-10:32
@describe
*/
@Service
public class HtypeServiceImpl implements HtypeService{

    @Autowired
    private HtypeMapper htypeMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return htypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Htype record) {
        return htypeMapper.insert(record);
    }

    @Override
    public int insertSelective(Htype record) {
        return htypeMapper.insertSelective(record);
    }

    @Override
    public Htype selectByPrimaryKey(Integer id) {
        return htypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Htype> findAllHType() {
        return htypeMapper.findAllHType();
    }

    @Override
    public int updateByPrimaryKeySelective(Htype record) {
        return htypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Htype record) {
        return htypeMapper.updateByPrimaryKey(record);
    }
    //查询所有的房型
    @Override
    public List<Htype> selectAllType() throws Exception {
        return htypeMapper.selectAllType();
    }

}
